Dynamic_cache_driver
└─Writeback_cache_driver
└─Db_cache_driver
└─MySQL_cache
public class MySQL_cache
extends Db_cache_driver
Field Summary | |
---|---|
private array | Prefetched data to avoid duplicate queries |
Constructor Summary | |
---|---|
void | Performs pre-load actions |
Method Summary | |
---|---|
void | flush() Saves all modified data with one query |
void | clear(str realm) |
void | exists(mixed id, mixed realm) |
private int | gc() Garbage collector function. |
void | get(mixed id, mixed realm) |
int | get_all(mixed realms, mixed realm) |
bool | remove_now(string id, string realm) |
bool | store(string id, mixed data, string realm, int ttl) Stores data as object image in cache |
bool | store_now(string id, mixed data, string realm, int ttl) Writes item to cache immediately, avoiding writeback. |
Methods inherited from API - Cache\Db_cache_driver | |
---|---|
get_all |
Methods inherited from API - Cache\Writeback_cache_driver | |
---|---|
flush, remove, remove_now, store, store_now |
Methods inherited from API - Cache\Dynamic_cache_driver | |
---|---|
store |
private array $buffer = array()
public void __construct()
public void flush()
public void clear(str realm)
public void exists(mixed id, mixed realm)
private int gc()
public void get(mixed id, mixed realm)
public int get_all(mixed realms, mixed realm)
public bool remove_now(string id, string realm)
public bool store(string id, mixed data, string realm, int ttl)
public bool store_now(string id, mixed data, string realm, int ttl)